第 16步:嗯。我们的精灵是不可点击的,但那是因为我们还没有完成我们的点击事件函数!
- 在图形中,单击并将Sprite Click add_click_event() 。
- 删除 click 事件中的这行代码: sprite 。说( “你好,名字” ) 。
- 在,在click( sprite )函数内拖动Remove Sprite 。
- 按运行并单击精灵。现在,它们会消失!
To navigate the page using the TAB key, first press ESC to exit the code editor.